!function () {
    "use strict";

    function n(n) {
        var t = n;
        return n && n.code && (t = n.code), t === Ne ? "E_TIME_OUT" : t === Te ? "E_NO_JSBRIDGE" : t === Le ? "E_KNB_FAIL" : t === Me ? "E_KNB_CB_FAIL" : t === Be ? "E_KNB_NOT_EXIST" : t === Re ? "ERR_PARAMS" : t === Ve ? "E_KNB_METHOD_NOT_SUPPORT" : "unknown error: " + t
    }

    function t() {
        return location
    }

    function e() {
        return window
    }

    function r() {
        return document
    }

    function i() {
        return navigator
    }

    function u() {
        var n = e();
        return n.XMLHttpRequest
    }

    function o() {
        var n = tu.get(hi);
        if (n) {
            var t = n.split("|");
            return {mis: t[0], env: t[1] || ""}
        }
        return n || {}
    }

    function a(n) {
        var t = "v2/api/" + pi + "/validate", e = "validate-ocean" + gi, r = 0 === j().indexOf("http:"), i = r ? "http:" : "https:", u = i + "//" + n + "/", a = D(), c = a.match(ki) || [], f = o(), s = void 0, d = void 0;
        if (d = c && c[1] || f.mis || "") {
            tu.set(hi, d + "|" + (s || ""), Oi);
            var v = e;
            u = i + "//" + v + "/" + t + "?mis=" + d
        }
        return u
    }

    function c(n) {
        Ai = n
    }

    function f() {
        return Ai === ie
    }

    function s(n) {
        return Ii && !n || (Ii = a(mi)), Ii
    }

    function d(n) {
        if (!Ei || n) {
            var t = "wreport.meituan.net";
            Ei = a(t)
        }
        return Ei
    }

    function v() {
    }

    function l(n) {
        return "undefined" == typeof n ? "undefined" : Ci(n)
    }

    function p(n, t) {
        return l(n) === t
    }

    function h() {
        return +new Date
    }

    function g() {
        return Math.random()
    }

    function m(n) {
        return p(n, "number")
    }

    function _(n) {
        return !n && p(n, "object")
    }

    function y(n, t, e) {
        var r = void 0, i = !0 === n;
        return i || (e = t, t = n), t && Hi.isObj(t) || (t = {}), e && Hi.isObj(e) || (e = {}), Yi.each(e, function (n, u) {
            i && Hi.isObj(e[u]) ? (r = t[u], t[u] = Hi.isObj(r) ? r : {}, y(i, t[u], e[u])) : t[u] = e[u]
        }), t
    }

    function b(n) {
        var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", e = void 0, r = void 0, i = void 0, u = void 0, o = void 0, a = void 0, c = void 0, f = void 0, s = 0, d = 0, v = "", l = [];
        if (!n) return n;
        n = w(n);
        do e = n.charCodeAt(s++), r = n.charCodeAt(s++), i = n.charCodeAt(s++), f = e << 16 | r << 8 | i, u = f >> 18 & 63, o = f >> 12 & 63, a = f >> 6 & 63, c = 63 & f, l[d++] = t.charAt(u) + t.charAt(o) + t.charAt(a) + t.charAt(c); while (s < n.length);
        switch (v = l.join(""), n.length % 3) {
            case 1:
                v = v.slice(0, -2) + "==";
                break;
            case 2:
                v = v.slice(0, -1) + "="
        }
        return v
    }

    function w(n) {
        n = (n + "").replace(/\r\n/g, "\n").replace(/\r/g, "\n");
        var t = "", e = void 0, r = void 0, i = 0, u = void 0;
        for (e = r = 0, i = n.length, u = 0; u < i; u++) {
            var o = n.charCodeAt(u), a = null;
            o < 128 ? r++ : a = o > 127 && o < 2048 ? String.fromCharCode(o >> 6 | 192, 63 & o | 128) : String.fromCharCode(o >> 12 | 224, o >> 6 & 63 | 128, 63 & o | 128), null !== a && (r > e && (t += n.substring(e, r)), t += a, e = r = u + 1)
        }
        return r > e && (t += n.substring(e, n.length)), t
    }

    function x(n, t) {
        var e = void 0, r = Yi.find(n, function (n) {
            return Hi.attr(n, "name") === t
        });
        return r && (e = Hi.attr(r, "content")), e
    }

    function S() {
        var n = Ni[re];
        return Ni[n]
    }

    function q(n) {
        var t = n || h(), e = S();
        eu.update(t), Qi = t, e && (e.l = t)
    }

    function k(n) {
        var t = void 0, e = eu.get(), r = h();
        if (n && e) t = e, eu.update(r); else {
            var i = S(), u = Ni.performance && Ni.performance.timing;
            t = u && u.requestStart, t || (t = i ? i.l : Qi), eu.update(r)
        }
        return r - t
    }

    function O(n) {
        var t = {duration: k(!0 === n)}, e = void 0, r = ji.quit, i = Hi.isFunc(r);
        return i && (e = r() || {}), t = Hi.extend(t, e || {})
    }

    function A(n, t) {
        !t[Dr]
    }

    function I(n) {
        return n < 2036
    }

    function E(n) {
        for (var t = n.length, e = t, r = 0; r < t; r++) {
            var i = n.charCodeAt(r);
            i > 127 && e++
        }
        return I(1.5 * e)
    }

    function j() {
        return Ti.protocol
    }

    function D() {
        return Ti.search
    }

    function C(n, t) {
        var e = void 0, r = di + ru++;
        if (t = t || 0, !(t > 2)) return Ni[r] = e = new Image, e.onload = function () {
            Ni[r] = null
        }, e.onabort = e.onerror = function () {
            Ni[r] = null, C(n, ++t)
        }, e.src = n, e
    }

    function F(n, t) {
        if ("string" === l(n) && "string" === l(t)) {
            var e = n.split("."), r = t.split(".");
            if (e.length === r.length) {
                for (var i = 0, u = e.length; i < u; i++) {
                    var o = e[i].toString().length, a = r[i].toString().length, c = o > a ? r : e;
                    c[i] = Array(Math.abs(o - a) + 1).join("0") + c[i].toString()
                }
                var f = parseInt(e.join("")), s = parseInt(r.join(""));
                return f == s ? 0 : f > s ? 1 : -1
            }
        }
    }

    function N(n, t, e, r, i, u, o) {
        return function (a) {
            if (!n) {
                n = !0;
                try {
                    if (t && new Date - e < 50) return;
                    if (r) return;
                    if (r = !1, !o()) {
                        var c = O();
                        i("pageDisappear", c, {shouldStore: !0})
                    }
                } catch (f) {
                }
                u && u(a)
            }
        }
    }

    function T(n) {
        if (!n) return Ri;
        var t = Ri, e = /^utm_(source|medium|term|content|campaign)$/;
        return Yi.each(n, function (n, r) {
            e.test(r) && (!t && (t = {}), t[r] = n)
        }), t
    }

    function L() {
        return "daum:q eniro:search_word naver:query pchome:q images.google:q google:q yahoo:p msn:q bing:q aol:query aol:q lycos:q lycos:query ask:q cnn:query virgilio:qs baidu:wd baidu:word alice:qs yandex:text najdi:q seznam:q rakuten:qt biglobe:q goo.ne:MT search.smt.docomo:MT onet:qt onet:q kvasir:q terra:query rambler:query conduit:q babylon:q search-results:q avg:q comcast:q incredimail:q startsiden:q go.mail.ru:q centrum.cz:q 360.cn:q sogou:query tut.by:query globo:q ukr:q so.com:q haosou.com:q auone:q m.baidu:word wap.baidu:word baidu:word Baidu:bs www.soso:w wap.soso:key www.sogou:query wap.sogou:keyword m.so:q m.sogou:keyword so.com:pq youdao:q sm.cn:q sm.cn:keyword haosou:q".split(" ")
    }

    function M(n) {
        var t = Hi.parseQuery(n);
        return T(t)
    }

    function B(n) {
        var t = Ri, e = n.match(/^[\w-]+:\/\/([^\/]+)(?:\/([^?]+)?)?/), r = e && e[1];
        if (r) {
            var i = Hi.parseQuery(n), u = L(), o = "", a = "";
            Yi.each(u, function (n) {
                var t = n.split(":"), e = t[0], u = t[1], c = i[u], f = -1 < e.indexOf(".") ? e : "." + e + ".";
                if (-1 < r.indexOf(f.toLowerCase()) && (a = e, o = c)) return !1
            }), a && (t = {}, t[Au] = a, t[Iu] = "organic", o && (t[Eu] = o))
        }
        return t
    }

    function V(n) {
        if (n) {
            Cu = n;
            var t = Hi.stringifyQuery(n);
            return tu.del(Pr, Mi), tu.top(Pr, t, Br, Mi), !0
        }
        return !1
    }

    function R() {
        var n = tu.get(Pr);
        if (!De.test(n)) return Cu;
        var t = Hi.isStr(n) ? Hi.parseQuery(n) : null;
        return T(t)
    }

    function P() {
        var n = void 0, t = /(utmc(tr|sr|cn|md|ct))=([^|()]+)/g, e = tu.get("__utmz"), r = e && e.match(t);
        return r && Yi.each(r, function (t) {
            var e = t.split("="), r = e[0], i = void 0, u = e[1] || "";
            "utmcsr" === r ? i = Au : "utmccn" === r ? i = ju : "utmcmd" === r ? i = Iu : "utmcct" === r ? i = Du : "utmctr" === r && (i = Eu), i && (n = n || {}, n[i] = u)
        }), n
    }

    function J(n, t) {
        return (!Cu && !Fu || n) && (n = n || Ti.href, t = t || Li.referrer, Cu = M(n) || B(t), Cu ? V(Cu) : Cu = R(), Cu || (Cu = P(), V(Cu)), Fu = te), Cu
    }

    function U(n) {
        return Lu + n
    }

    function K() {
        return {
            length: 0, _data: {}, setItem: function (n, t) {
                return this.length++, this._data[n] = String(t)
            }, getItem: function (n) {
                return this._data.hasOwnProperty(n) ? this._data[n] : Ri
            }, removeItem: function (n) {
                return this.length--, delete this._data[n]
            }, clear: function () {
                return this.length = 0, this._data = {}
            }, key: function (n) {
                var t = [], e = this._data;
                return Yi.each(e, function (n) {
                    Hi.hasOwn(e, n) && t.push(n)
                }), t[n]
            }
        }
    }

    function Q(n, t, e, r, i, u) {
        var o = {};
        o.c = n, o.k = t, o.v = e, o.t = r || +new Date, o.u = i || "", o.r = u || "", this.toJSON = function () {
            return Hi.extend(!0, {}, o)
        }
    }

    function X(n) {
        var t = Hi.now();
        return Ku < t - n.t
    }

    function $(n) {
        return n
    }

    function H(n) {
        try {
            n(z(this, $u), z(this, Xu))
        } catch (t) {
            if (this._state === Hu) return W(new H($), Xu, t)
        }
    }

    function z(n, t) {
        return function (e) {
            return W(n, t, e)
        }
    }

    function G(n, t, e, r) {
        return l(e) === zu && (t._onFulfilled = e), l(r) === zu && (t._onRejected = r), n._state === Hu ? n[n._pCount++] = t : Y(n, t), t
    }

    function Y(n, t) {
        return setTimeout(function () {
            var e = void 0, r = n._state ? t._onFulfilled : t._onRejected;
            if (void 0 === r) return void W(t, n._state, n._value);
            try {
                e = r(n._value)
            } catch (i) {
                return void W(t, Xu, i)
            }
            Z(t, e)
        })
    }

    function W(n, t, e) {
        if (n._state === Hu) {
            n._state = t, n._value = e;
            for (var r = 0, i = n._pCount; r < i;) Y(n, n[r++]);
            return n
        }
    }

    function Z(n, t) {
        if (t === n && t) return void W(n, Xu, new Error("promise_circular_chain"));
        var e = void 0, r = l(t);
        if (null === t || r !== zu && r !== Gu) W(n, $u, t); else {
            try {
                e = t.then
            } catch (i) {
                return void W(n, Xu, i)
            }
            l(e) === zu ? nn(n, t, e) : W(n, $u, t)
        }
        return n
    }

    function nn(n, t, e) {
        try {
            e.call(t, function (e) {
                t && (t = null, Z(n, e))
            }, function (e) {
                t && (t = null, W(n, Xu, e))
            })
        } catch (r) {
            t && (W(n, Xu, r), t = null)
        }
    }

    function tn(n, t) {
        Yi.each(Zu, function (e) {
            e(n, t)
        }), Zu = []
    }

    function en(n) {
        var t = Ni.KNB;
        if (ku()) {
            if (de === lu) n(Ri, t); else if (Yu || to) n(to, t); else if (Zu.push(n), !no) {
                no = !0;
                var e = Ce(function () {
                    to = Ne, tn(Ne, t)
                }, Wu);
                h();
                /meituan \d+/i.test(Vi) || /meituangroup\/7\.([0-7])\./i.test(Vi) ? (to = Ve, tn(Ve, t)) : (t.ready(function () {
                }), t.ready(function () {
                    t.isApiSupported({
                        apiName: "lxlog", success: function (n) {
                            !0 === n ? (Yu = !0, Fe(e), tn(Ri, t)) : (to = Ve, tn(Ve, t))
                        }, fail: function () {
                            Fe(e), to = Me, tn(Me)
                        }
                    })
                }))
            }
        } else n(Be, t)
    }

    function rn(n) {
        var t = {}, e = n[be], r = e && "0" !== e;
        return r || "dp" !== n.type ? n[be] && (t[be] = n[be]) : t[be] = n[pe], "dp" !== n.type && n[pe] && (t[pe] = n[pe]), n.unionId && (t.unionId = n.unionId), n.userId && (t.userId = n.userId), t
    }

    function un() {
        return io ? H.resolve(io) : new H(function (n, t) {
            en(function (e, r) {
                var i = Ni.DPApp, u = Ce(function () {
                    n({})
                }, eo);
                r ? r.ready(function () {
                    r.use(ro, {
                        success: function (t) {
                            Fe(u), n(rn(t))
                        }, fail: function (n) {
                            Fe(u), t({code: Le})
                        }
                    })
                }) : i && i[ro] ? i.ready(function () {
                    i[ro]({
                        success: function (t) {
                            Fe(u);
                            var e = {};
                            (t.dpid || t.userId) && (e.dpid = t.dpid, e.userId = t.userId, e.unionId = t.unionId), n(e)
                        }, fail: function (n) {
                            Fe(u), t({code: Te, res: n})
                        }
                    })
                }) : t({code: Te})
            })
        })
    }

    function on() {
        return tu.get(Kr)
    }

    function an(n) {
        n && tu.top(Kr, n, Vr)
    }

    function cn() {
        var n = on() || uo();
        return an(n), n
    }

    function fn() {
        var n = Math.floor(1 + 65535 * Hi.rnd());
        return n.toString(16).substring(1)
    }

    function sn() {
        var n = [], t = +new Date;
        return n.push(t.toString(16)), n.push(fn()), n.push(fn()), n.push(fn()), n.join("-")
    }

    function dn() {
        if (Ri !== oo) return oo;
        var n = Li.getElementsByTagName("meta");
        return oo = "off" === x(n, "lx:native-report")
    }

    function vn() {
        return ao
    }

    function ln(n) {
        dn() || (ao = n)
    }

    function pn() {
        return co
    }

    function hn(n) {
        co = !!n
    }

    function gn(n, t, e) {
        return lu === de && window.JavaScriptBridge ? void window.JavaScriptBridge.log(t, function (n) {
            var t = n.data;
            try {
                Hi.isStr(t) && (t = Tu.parse(t)), e(Ri, t.data ? t.data : t)
            } catch (r) {
                e(r)
            }
        }) : en(function (r, i) {
            if (r) return e(r);
            var u = (new Date, !1), o = Ce(function () {
                u = !0, e(Ne)
            }, fo);
            i.use(n, {
                data: t, success: function (n) {
                    if (Fe(o), !u) if ("success" === n.status) {
                        var t = n.data;
                        try {
                            Hi.isStr(t) && (t = Tu.parse(t)), e(Ri, t.data ? t.data : n)
                        } catch (r) {
                            e(r)
                        }
                    } else e(Me)
                }, fail: function () {
                    Fe(o), u || e(Me)
                }
            })
        })
    }

    function mn(n) {
        var t = n.match(/(\d+)(?:\.(\d+)(?:\.(\d+))?)?/), e = [];
        if (t) for (var r = 1; r < t.length; r++) e.push(parseInt(t[r] || 0));
        return e
    }

    function _n(n, t) {
        var e = mn(n), r = mn(t);
        return !(e[0] < r[0]) && (!(e[0] === r[0] && e[1] < r[1]) && !(e[0] === r[0] && e[1] === r[1] && e[2] < r[2]))
    }

    function yn() {
        return 100 * Hi.now() + _o++
    }

    function bn(n) {
        var t = {cb: "_lx" + yn(), mn: n._mn, cn: n._cn, data: n._d || {}, ver: 4};
        return t
    }

    function wn(n, t, e, r) {
        var i = this;
        i._cn = n, i._mn = t, i._d = e, i._cb = r
    }

    function xn(n, t, e, r) {
        if (tr === vo || er === vo) return r(vo);
        var i = new wn(n, t, e);
        if (Ze === vo) i.send(function (n, t) {
            r(n, t)
        }); else if (nr === vo) {
            if (mo.push([i, r]), !lo) {
                lo = !0;
                var u = (new Date, new wn(n, so, {}));
                u.send(function (n, t) {
                    if (n) vo = tr; else {
                        if (vo = Ze, ln(Fr), Hi.isStr(t)) try {
                            t = Tu.parse(t)
                        } catch (e) {
                        }
                        yo = t;
                        var r = t.sdk_ver || "";
                        po = _n(r, "4.0.0"), ho = _n(r, "4.3.0"), go = !_n(r, "4.8.0")
                    }
                    Yi.each(mo, function (t) {
                        var e = t[0], r = t[1];
                        n ? r(n) : e.send(function (n, t) {
                            r(n, t)
                        })
                    })
                })
            }
        } else r(rr)
    }

    function Sn() {
        return !go
    }

    function qn() {
        return po
    }

    function kn() {
        return ho
    }

    function On(n) {
        var t = /(^\w+\.\d+\.\d+\.\d+\.\d+)/, e = /(^\w+-\w+-\w+-\w+-\w+)/;
        if (e.test(n)) {
            var r = n.match(e);
            tu.top(Jr, r[1], Vr)
        } else n && !t.test(n) && n.length < 100 ? tu.top(Jr, n, Vr) : tu.top(Jr, "", -1)
    }

    function An(n, t, e) {
        var r = [];
        return r.push(n ? n : jn()), r.push(t ? t : Dn()), r.push(e ? e : Cn()), r.join(Io)
    }

    function In(n) {
        var t = tu.get(Xr);
        return t ? t.split(Io)[n] : ""
    }

    function En(n, t, e) {
        tu.top(Xr, An(n, t, e), Rr)
    }

    function jn() {
        return In(ko)
    }

    function Dn() {
        return In(Oo)
    }

    function Cn() {
        var n = 0, t = In(Ao);
        return isNaN(t) || (n = parseInt(t)), n < 0 ? 0 : n
    }

    function Fn(n) {
        var t = Cn();
        return !0 === n && (t++, Nn(t)), (!t || -1 > t) && (t = 0, Nn(t)), t
    }

    function Nn(n) {
        En(Ri, Ri, n)
    }

    function Tn(n) {
        var t = {};
        if (De.test(n)) {
            var e = Hi.parseQuery(n);
            return e[pe] && (t[pe] = e[pe]), e[ge] && (t[ge] = e[ge]), e[ye] && (t[_e] = e[ye]), t
        }
        return t
    }

    function Ln(n) {
        return new H(function (t, e) {
            n && lu || ku() ? xn(n, "getReqId", {}, function (n, e) {
                t(n ? {} : e)
            }) : t({})
        })
    }

    function Mn(n, t) {
        return new H(function (e, r) {
            Ce(function () {
                r({code: Ne})
            }, 3e3), xn(n, "getEnv", {}, function (n, i) {
                if (n) r(n); else {
                    var u = {uuid: pe, msid: he, uid: _e, dpid: be, appnm: we, union_id: xe};
                    t = t || {};
                    for (var o in u) {
                        var a = u[o];
                        i[o] && (t[a] = i[o])
                    }
                    e(t)
                }
            })
        })
    }

    function Bn() {
        var n = tu.get($r);
        if (n) {
            var t = n.split(","), e = /^\d+\.\d{5,}$/;
            return 3 !== t.length ? null : e.test(t[0]) && e.test(t[1]) ? {lat: t[0], lng: t[1], tm: t[2]} : null
        }
        return null
    }

    function Vn() {
        var n = tu.get(Jr), t = tu.get("iuuid") || tu.get("uuid") || n, e = jn(), r = Dn(), i = tu.get(Qr) || tu.get(be), u = {};
        return t && (u[pe] = t), e && (u[he] = e), n && (u[le] = n), r && (u[_e] = r), i && (u[be] = i), u
    }

    function Rn(n) {
        qo.push(n)
    }

    function Pn(n) {
        return Hi.extend(!0, {}, n)
    }

    function Jn(n) {
        var t = Li.getElementsByTagName("meta"), e = x(t, "lx:appnm"), r = x(t, "lx:defaultAppnm"), i = lu, u = Li.domain, o = vn();
        return pu && cu(lu || e || r || u), hu ? e ? 2 === o ? e : e : 2 === o ? n : i ? i : r ? r : u : e ? e : i ? i : r ? r : u
    }

    function Un() {
        var n = lu === se || lu === ae, t = Vn(), e = void 0, r = {};
        n && (r = Tn(Ti.href)), e = Hi.extend(t, r), e.ct = mu;
        var i = J();
        i && (e[me] = i);
        var u = cn();
        e[le] = u, e[pe] || (e[pe] = u), e[he] || (e[he] = sn(), En(e[he], e.uid || "")), e[pe] && On(e[pe]);
        var o = Jn();
        return Hi.isStr(o) && (e[we] = o), e
    }

    function Kn(n) {
        return function (t) {
            var e = t;
            return n !== t && (e = Hi.extend(n, t)), e.dpid && e.uid ? e : un().then(function (n) {
                var t = {};
                return n.dpid && (t.dpid = n.dpid, n.userId && (t.uid = "" + n.userId), n.unionId && (t.union_id = n.unionId)), e = Hi.extend(e, t)
            }, function (n) {
                return e
            })
        }
    }

    function Qn(n) {
        return Mr === So ? H.resolve(Pn(xo)) : Lr === So ? new H(function (n) {
            Rn(function (t) {
                n(t)
            })
        }) : (So = Lr, Eo(n).then(function (n) {
            return xo = Hi.extend(!0, {}, n || {}), So = Mr, Yi.each(qo, function (t, e) {
                Hi.isFunc(t) && qo[e](n)
            }), n
        }))
    }

    function Xn(n, t, e, r, i) {
        var u = [{project: "web-lx-sdk", pageUrl: Ti.href, resourceUrl: n, category: i ? "jsError" : "ajaxError", sec_category: t, level: "error", unionId: e, timestamp: Hi.now(), content: "" + r || ""}], o = nt("//catfront.dianping.com/api/log?v=1", "application/x-www-form-urlencoded");
        o && (o.onerror = o.onreadystatechange = function () {
        }, o.send("c=" + encodeURIComponent(Tu.stringify(u))))
    }

    function $n(n, t) {
        if (Bo >= jo) return !1;
        t = Hi.extend({cb: v}, t || {});
        var e = s(), r = (t.nm, !ji.use_post);
        try {
            r && Hn(n) ? t.cb(Ze) : Yn(e, n, t) || _u && Gn(e, n, t) || zn(e, n) && t.cb(Ze)
        } catch (i) {
            return Xn(Ti.path, "report-ajax", 0, i.message, !0), !1
        }
        return !0
    }

    function Hn(n) {
        var t = void 0, e = "d", r = "t", i = "r", u = et(n);
        if (Yi.each(u, function (n) {
                delete n.ua
            }), t = Tu.stringify(u), !E(t)) return Yi.each(n, function (n) {
            Yi.each(n.evs, function (n) {
                var t = Hi.extend(!0, {custom: {_s: 1}}, n.val_lab || {});
                n.val_lab = t
            })
        }), !1;
        var o = b(t), a = Ki(o), c = d();
        return c += -1 < c.indexOf("?") ? "&" + e + "=" + a : "?" + e + "=" + a, c = c + "&" + r + "=1&" + i + "=" + (No++).toString(16), C(c), !0
    }

    function zn(n, t) {
        var e = Bi.sendBeacon;
        return !!e && (n = Zn(n), e && e.call(Bi, n, Tu.stringify(t)))
    }

    function Gn(n, t, e, r) {
        if (!Ni.XDomainRequest) return !1;
        try {
            var i = new XDomainRequest;
            return i.open(li, Zn(n), !0), i.onload = function () {
                Bo = 0, e && e.cb(Ze), Lo = []
            }, i.onerror = function () {
                Bo++
            }, i.ontimeout = function () {
                Bo++, r || (Wn(n, t, Gn, e), To = !0)
            }, i.timeout = Co, i.send(Tu.stringify(t)), !0
        } catch (u) {
            return !1
        }
    }

    function Yn(n, t, e, r, i) {
        if (!qi()) return !1;
        try {
            var u = nt(n, "text/plain");
            return u.onreadystatechange = function () {
                if (4 === u.readyState) {
                    var o = u.status;
                    o >= 200 ? (Bo = 0, e && e.cb(Ze), Lo = []) : (Bo++, r || !1 !== i || (Wn(n, t, Yn, e), To = !0)), e.nm === ir && (400 <= o || 0 === o) && Xn(n, "web-report-fail", t[0].union_id, o), u.onreadystatechange = null
                }
            }, u.onerror = function () {
                u.abort(), Bo++
            }, u.send(Tu.stringify(t)), !0
        } catch (o) {
            return !1
        }
    }

    function Wn(n, t, e, r) {
        Lo = Lo.concat(t);
        var i = void 0, u = Yi.reduce(Lo, function (n, t) {
            return t.evs = n.evs.concat(t.evs), i = t.evs.length, i > Do && Yi.slice(t.evs, i - Do, i), t
        });
        if (Lo = [u], Mo.push(r), !To) var o = setInterval(function () {
            return Bo >= jo ? (clearInterval(o), !1) : void e(n, Lo, function (n) {
                clearInterval(o), To = !1, Yi.each(Mo, function (t) {
                    t && t(n)
                })
            }, !0)
        }, Fo)
    }

    function Zn(n) {
        var t = "_lxsdk_rnd=" + (No++).toString(16);
        return -1 === n.indexOf("?") ? n + "?" + t : n + "&" + t
    }

    function nt(n, t) {
        var e = u(), r = new e;
        return r.open(li, Zn(n), !0), r.timeout = Co, r.setRequestHeader("Content-Type", t), r
    }

    function tt(n, t, e) {
        return $i.call(n, t) && n[t] && (n[e] = n[t], delete n[t]), n
    }

    function et(n) {
        var t = [], e = [{l: ei, s: ri}, {l: Hr, s: zr}, {l: Gr, s: Yr}, {l: Wr, s: Zr}, {l: ii, s: ui}, {l: ni, s: ti}];
        return Yi.each(n, function (n) {
            var r = Hi.extend(!0, {}, n);
            Yi.each(e, function (n) {
                tt(r, n.l, n.s)
            });
            var i = [];
            Yi.each(n.evs, function (n) {
                n = Hi.extend(!0, {}, n), Yi.each(n, function (t, e) {
                    if (-1 < e.indexOf("val_") && (n[e.replace("val_", "")] = n[e], delete n[e]), tt(n, "refer_url", "urlr"), n[e] && "url" === e) {
                        var r = Ti.hash;
                        r && (n.urlh = r), delete n[e]
                    }
                }), i.push(n)
            }), r.evs = i, r[ui] === r.uuid && delete r.uuid;
            var u = r[Yr];
            u && (r[Yr] = u.replace("data_sdk_", "")), delete r.ua, t.push(r)
        }), t
    }

    function rt() {
        function n() {
            return Math.floor(65536 * (1 + Math.random())).toString(16).substring(1)
        }

        return n() + n() + "-" + n() + "-" + n() + "-" + n() + "-" + n() + n() + n()
    }

    function it() {
        return rt() + "." + Math.round(+new Date / 1e3)
    }

    function ut() {
        var n = tu.get(Ro);
        if (n || (n = it(), tu.top(Ro, n, Po)), n) {
            var t = n.match(Vo);
            return t ? t[1] : ""
        }
        return ""
    }

    function ot() {
        return !Jo && Uo && (Jo = ut()), Jo
    }

    function at(n) {
        var t = this;
        t.s = n;
        var e = void 0, r = Bu.get(si) || {s: n, d: t.d};
        r.s !== n ? (Bu.del(si), e = t.d = []) : e = t.d = r.d || [], t.l = e && e.length || 0
    }

    function ct(n) {
        return Qo || (Qo = new at(n)), Qo
    }

    function ft() {
        return Qo
    }

    function st(n, t) {
        var e = this;
        e.env = t || {}, e.opts = Hi.extend(!0, {}, n), ia.push(e)
    }

    function dt(n) {
        return n._ptpvs === Je
    }

    function vt() {
        return !sa
    }

    function lt(n) {
        return n = n || {}, n && !Hi.isObj(n) && (n = {cid: "" + n}), n
    }

    function pt(n) {
        ca = n
    }

    function ht(n, t) {
        fa[n] = t
    }

    function gt() {
        return aa || (aa = wt()), aa
    }

    function mt() {
        return aa = wt()
    }

    function _t() {
        var n = Bu.get(Se);
        return n && Bu.del(Se), n
    }

    function yt(n, t) {
        return Hi.isObj(n[oi]) || (n[oi] = {}), n[oi][na] = t, n
    }

    function bt(n) {
        return !(!Hi.isStr(n) && !n.length)
    }

    function wt() {
        return Hi.now().toString(16) + "-" + Math.floor(65535 * Hi.rnd()) + "-" + Math.floor(65535 * Hi.rnd())
    }

    function xt(n) {
        var t = {};
        return t[sr] = "order", t[dr] = "pay", t[or] = "click", t[fr] = "return", t[cr] = "view", t[ar] = "click", t[n]
    }

    function St(n) {
        var t = n.nm;
        ir === t ? (n.nm = "mpt", n.val_act = "pageview") : ur === t ? (n.nm = "report", n.val_act = "quit") : (n.nm = "mge", n.event_type = xt(t) || t), n.nt = 0, n.isauto = 8
    }

    function qt(n) {
        var t = "data_sdk_";
        return 0 !== n.indexOf(t) && (n = t + n), n
    }

    function kt(n) {
        var t = "data_sdk_";
        return 0 === n.indexOf(t) && (n = n.replace(Xo, "")), n
    }

    function Ot(n) {
        var t = Hi.extend(!0, {}, n.env);
        t[Xo] = qt(t[Xo]);
        var e = t.utm, r = {ua: su, sdk_ver: ve, ch: e && e.utm_source ? e.utm_source : "web", sc: Su};
        return r[ei] = ve, Hi.extend(!0, r, t)
    }

    function At(n) {
        var t = ft(), e = t.toJSON();
        return e && (n[ta] = e), n
    }

    function It(n) {
        return n && n.custom && "v3" === n.custom._api
    }

    function Et(n, t, e, r, i) {
        i = i || Pe;
        var u = Fn(!0), o = Bn(), a = void 0, c = ir === n, f = sr === n, s = dr === n, d = {nm: n, tm: Hi.now(), nt: Nr, isauto: i, val_cid: t, req_id: gt(), seq: u};
        if (c) {
            var v = Ti.href;
            d.url = v, a = ua, a && (d.refer_url = a), i === Pe && (ua = v)
        }
        return (f || c || s) && pu && (d = At(d)), r = da(r, "_hguid", ot()), It(r) && !t && (d.val_cid = Li.title || Ti.pathname, r = da(r, "_cid", 1)), c && (r = da(r, "_hpid", Ko())), e && (d[Zo] = e), r && (d[oi] = r), o && (d[ea] = o.lat, d[ra] = o.lng), d
    }

    function jt(n, t, e, r, i) {
        var u = Et(n, t, e, r, i);
        return Dt(u)
    }

    function Dt(n) {
        if (oa && 0 < oa.length) {
            var t = oa;
            return oa = [], t.push(n), t
        }
        return [n]
    }

    function Ct(n) {
        return gu ? n : vu && Sn() ? n : Ki(n)
    }

    function Ft(n, t, e, r, i, u) {
        u = u || {}, i = i || Pe;
        var o = this, a = o.env.appnm, c = Bn(), f = pn(), s = !f, d = void 0, v = {nm: n, tm: Hi.now(), nt: Fr, isauto: i, val_cid: t, shouldCover: s};
        v = Hi.extend(!0, v, fa), ca && (v.req_id = ca), u.sf && (v._sf = u.sf);
        var l = void 0, p = Hi.extend(!0, {}, r || {}), h = ir === n;
        if (h) {
            var g = Ct(Ti.href);
            l = {ua: su, url: g};
            var m = J();
            m && m.utm_source && (l.utm = m), d = ua, d && (l.refer_url = Ct(d)), i === Pe && (ua = g)
        } else l = {};
        return Yi.each({web_req_id: gt(), web_sdk_ver: ve, lxcuid: cn(), web_appnm: a, covered_by_native: s}, function (n, t) {
            Hi.isStr(n) && (l[t] = n)
        }), u.cpi && !p.page && (p.page = u.cpi), p.custom = Hi.extend(!0, p.custom, l), p = da(p, "_hguid", ot()), h && (p = da(p, "_hpid", Ko())), n !== ar || kn() ? qn() || St(v) : qn() ? v.nm = or : St(v), v[oi] = p, c && (v[ea] = c.lat, v[ra] = c.lng), e && (v[Zo] = e), h && !qn() && (v.val_val = p, delete v[oi]), v
    }

    function Nt(n) {
        return n
    }

    function Tt(n, t, e) {
        return Yi.isArrayLike(t) || (t = [t]), Hi.run(t, function (n) {
            n && e && (n.tag = e)
        }), n.evs = t, n
    }

    function Lt(n) {
        return vi[n]
    }

    function Mt(n, t) {
        return Yi.isArray(n) && n.length ? Hi.isObj(n[0][oi]) ? Hi.isObj(n[0][oi][na]) ? (n[0][oi][na] = Hi.extend(!0, n[0][oi][na], {utm: t[me]}), n) : (n[0][oi][na] = {utm: t[me]}, n) : (n[0][oi] = {page: {utm: t[me]}}, n) : n
    }

    function Bt(n, t) {
        var e = {};
        return e[Dr] = t, Hi.extend(e, n)
    }

    function Vt(n, t, e) {
        var r = null;
        return !Hi.isStr(n) || t || e ? Hi.isObj(n) && Hi.isStr(t) && !e && (r = t, t = null) : (r = n, n = null), r && (e = Hi.extend({cid: r}, e || {})), {lab: n, env: t, opts: e}
    }

    function Rt(n, t, e, r) {
        var i = Vt(t, e, r), u = i.lab, o = i.env, a = i.opts;
        r = lt(a);
        var c = r.cid || n.opts.cid;
        r = Hi.extend({cid: c}, r), o && Hi.isObj(o) && Yi.each(o, function (t, e) {
            n._dt.set(e, t)
        }), n._dt.pageView(u, r)
    }

    function Pt(n, t) {
        this.env = n || {}, this.opts = t || {}, this._t = []
    }

    function Jt(n, t) {
        Hi.isStr(n) && (t = Hi.isFunc(t) && t || function () {
        }, "on" + n in Ni || "KNB:" + n in Ni ? Hi.on(window, n, function (n) {
            t(n)
        }) : (ha = window.KNB, ha && ha.subscribe({
            action: n, handle: function (n) {
                t()
            }, success: function (n) {
            }, fail: function (n) {
            }
        })))
    }

    function Ut(n) {
        Jt("appear", ga.appear), Jt("disappear", ga.disappear), ma && (Jt("foreground", ga.appear), Jt("background", ga.disappear)), pa = Qt()
    }

    function Kt(n, t) {
        return {cb: n, cmd: t}
    }

    function Qt() {
        return wa
    }

    function Xt() {
        hn(!1), Ln(xa).then(function (n) {
            var t = n || {}, e = t.val_ref, r = t.req_id, i = t.refer_req_id, u = !!(r || e || i);
            r && wa._setRequestID(r), e && wa._setNativeEvsData("val_ref", e), i && wa._setNativeEvsData("refer_req_id", i), hn(u)
        })
    }

    function $t(n, t) {
        if (Mr === ba) n && n(wa); else if (Lr === ba) n && ya.push(Kt(n, t)); else {
            Hi.now();
            ya = ya.concat(Kt(n, t));
            var e = Li.getElementsByTagName("meta"), r = x(e, "lx:cid") || ji.cid;
            if (xa = x(e, "lx:category"), !xa) return void(ba = Tr);
            ba = Lr;
            var i = x(e, "lx:mvDelay");
            i = isNaN(i) ? 0 : parseInt(i, 10);
            var u = "off" !== x(e, "lx:autopv");
            ji.autoPV = u, Ce(Xt, 1e3), H.all([Qn(xa)]).then(function (n) {
                var t = n[0], e = t.appnm;
                !Hi.isStr(e) || e === Li.domain, wa = new Pt(t, {cid: r, isDefault: !0, mvDelay: i}), xa && wa.create(xa, {isDefault: !0}), t = Hi.extend(!0, wa._dt.env, t), wa._dt.env = t;
                try {
                    var o = [];
                    Yi.each(ya, function (n) {
                        var e = n.cb, r = n.cmd;
                        "config" === r || "set" === r ? e(wa, t) : o.push(n)
                    }), pu && ct(t.msid), u && xa && r && r && wa._initPV(t, r), _a.hook(function () {
                    }), Yi.each(o, function (n) {
                        n && n.cb && n.cb(wa, t)
                    })
                } catch (a) {
                }
            }).then(function () {
                ba = Mr
            }, function (n) {
                throw ba = Mr, n
            })
        }
    }

    function Ht(n) {
        n = Fa(n, n.val);
        var t = Ma(n, !0);
        return [Sr, t, null, n[br]]
    }

    function zt(n) {
        var t = Ia(n);
        n = t[0];
        var e = void 0;
        return t[1] && (e = t[1]), [n, e]
    }

    function Gt(n, t, e, r, i) {
        if (Hi.isFunc(t)) t.call(n, n, r, i); else if (!i && Hi.isStr(t) && Hi.isFunc(n[t])) return n[t].apply(n, e)
    }

    function Yt() {
        if (!za) {
            za = !0;
            var n = void 0, t = void 0;
            _u && Hi.on(Li, "mouseup", function (t) {
                var e = t.target || t.srcElement, r = e.tagName + e.href;
                r = r.toLocaleLowerCase(), 1 === e.nodeType && /^ajavascript:/i.test(r) && (n = new Date)
            });
            var e = !1, r = Ni.onbeforeunload;
            pu && gu ? Ni.addEventListener("pagehide", N(e, _u, n, t, Zt, Ri, f)) : Ni.onbeforeunload = N(e, _u, n, t, Zt, r, f)
        }
    }

    function Wt() {
        function n() {
            var n = S();
            n && (n.q.push = function l(n) {
                try {
                    var e = Ua(n), o = e ? e[0] : "";
                    if (Yi.isArray(o)) return void Zi(e, function (n) {
                        l(n)
                    });
                    "start" === o ? (r = !0, i || t(u)) : !1 === r ? e && u.push(e) : Zt.apply(Ri, e)
                } catch (a) {
                    try {
                        Xn("sdk", "api-error", "", a.stack, !0)
                    } catch (a) {
                    }
                }
            });
            for (var e = void 0, o = void 0, a = [], c = [], f = [], s = n && Yi.isArray(n.q) ? n.q : [], d = 0, v = s.length; d < v; d++) o = s[d][0], "config" === o ? c.push(s[d]) : e || "use" !== o ? f.push(s[d]) : (a.push(s[d]), e = !0);
            return s = c.concat(a.concat(f))
        }

        function t(n) {
            i || (n && Yi.each(n, function (n) {
                var t = Ua(n), e = t ? t[0] : "";
                return Yi.isArray(e) ? void Zi(t, function (n) {
                    Zt.apply(Ri, n)
                }) : void(e && Zt.apply(Ri, t))
            }), Zt(function () {
                Yt()
            }), i = !0)
        }

        var e = qu && !Ni.KNB && Ga;
        if (e) return Wa && Fe(Wa), void(Wa = Ce(function () {
            Ga--, Wt()
        }, Ya));
        var r = !0, i = !1, u = n();
        if (0 === u.length) $t(function (n) {
            Ha = n, Yt()
        }); else try {
            u = nu(u, function (n) {
                var t = Ua(n), e = t ? t[0] : "";
                if ("config" === e) {
                    var i = t[1], u = t[2];
                    "autoStart" === i && !1 === u && (r = !1)
                }
                return t
            }), r && t(u)
        } catch (o) {
        }
    }

    function Zt(n) {
        var t = arguments;
        if (t.length) {
            var e = Yi.slice(t, 1, t.length);
            try {
                Ha ? Gt(Ha, n, e, Ha._dt ? Ha._dt.env : null) : $t(function (t, r, i) {
                    Ha = t, Gt(t, n, e, r, i), Yt()
                }, n)
            } catch (r) {
                try {
                    Xn("sdk", "api-error", "", r.message + "\n" + r.stack, !0)
                } catch (r) {
                }
            }
        }
    }

    function ne(n) {
        nc && Fe(nc), Za || (Za = !0, Wt())
    }

    var te = !0, ee = !1, re = "_MeiTuanALogObject", ie = 1, ue = 0, oe = "dianping_nova", ae = "waimai", ce = "moviepro", fe = "movie", se = "group", de = "demo", ve = "4.7.1", le = "lxcuid", pe = "uuid", he = "msid", ge = "cityid", me = "utm", _e = "uid", ye = "userid", be = "dpid", we = "appnm", xe = "union_id", Se = "pd_data", qe = /dp\/com\.dianping\.[\w.]+\/([\d.]+)/i, ke = /\bmeituanwaimai-c\/\d+\./i, Oe = /\bmoviepro/i, Ae = /\bmaoyan\b/i, Ie = /\bmeituan \d+|meituangroup\/\d+\./i, Ee = /\bandroid|mobile\b|\bhtc\b/i, je = /\btitans(no){0,1}x\b/i, De = /^(([^? \r\n]*)\?)?([^?# \r\n]+)(#\S+)?$/, Ce = setTimeout, Fe = clearTimeout, Ne = 1, Te = 2, Le = 3, Me = 4, Be = 5, Ve = 6, Re = 20, Pe = 7, Je = 6, Ue = /android/i, Ke = /iphone/i, Qe = /ipad/i, Xe = "android", $e = "iphone", He = "ipad", ze = "www", Ge = "i", Ye = "statistics://_lx/?data=", We = "lxlog", Ze = 200, nr = 100, tr = 500, er = 600, rr = -1, ir = "PV", ur = "PD", or = "MC",
        ar = "SC", cr = "MV", fr = "ME", sr = "BO", dr = "BP", vr = "click", lr = "tap", pr = "view", hr = "return", gr = "order", mr = "pay", _r = "event_type", yr = "val_act", br = "val_cid", wr = "index", xr = "element_id", Sr = "pageView", qr = "pageDisappear", kr = "systemCheck", Or = "moduleView", Ar = "moduleClick", Ir = "moduleEdit", Er = gr, jr = mr, Dr = "order_id", Cr = 1e3, Fr = 2, Nr = 0, Tr = -1, Lr = 0, Mr = 1, Br = 10080, Vr = 1576800, Rr = 30, Pr = "_lx_utm", Jr = "_lxsdk", Ur = "_lxsdk_unoinid", Kr = "_lxsdk_cuid", Qr = "_lxsdk_dpid", Xr = "_lxsdk_s", $r = "latlng", Hr = "msid", zr = "ms", Gr = "category", Yr = "c", Wr = "login_type", Zr = "lt", ni = "locate_city_id", ti = "lci", ei = "sdk_ver", ri = "sv", ii = "lxcuid", ui = "lxid", oi = "val_lab", ai = "val_bid", ci = "val_val", fi = "custom", si = "sf", di = "__$lx_beacon_",
        vi = {union_id: te, lxcuid: te, app: te, sdk_ver: te, appnm: te, ch: te, lch: te, ct: te, did: te, dm: te, ua: te, msid: te, uuid: te, lat: te, log: te, net: te, os: te, idfa: te, pushid: te, subcid: te, mac: te, imsi: te, uid: te, logintype: te, cityid: te, apn: te, mno: te, pushSetting: te, wifi: te, bht: te, ip: te, vendorid: te, geohash: te, dtk: te, sns: te, android_id: te, version_code: te, brand: te, utm: te}, li = "post", pi = "validation", hi = "__lx" + pi, gi = ".sankuai.com", mi = "report.meituan.com", _i = "send", yi = "use", bi = "event", wi = "mge", xi = "mpt", Si = "report", qi = function () {
            var n = u(), t = n && "withCredentials" in new n;
            return function () {
                return t
            }
        }(), ki = /__lxvalidation=([\w.]+)/i, Oi = 10, Ai = !1, Ii = void 0, Ei = void 0, ji = {pageValLab: null, pageEnv: null, use_post: !1, cid: null, appnm: null, quit: null}, Di = [];
    ji.on = function (n, t) {
        Di.push({name: n, fn: t})
    }, ji.emit = function (n, t, e, r, i) {
        Yi.each(Di, function (u) {
            var o = u.name, a = u.fn;
            o === n && a(t, e, r, i)
        })
    };
    var Ci = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (n) {
        return typeof n
    } : function (n) {
        return n && "function" == typeof Symbol && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n
    }, Fi = 1e3, Ni = e(), Ti = t(), Li = r(), Mi = Li.domain, Bi = i(), Vi = Bi.userAgent.toString(), Ri = void 0, Pi = Array.prototype, Ji = Object.prototype, Ui = decodeURIComponent, Ki = encodeURIComponent, Qi = h(), Xi = Ji.toString, $i = Ji.hasOwnProperty, Hi = {};
    Hi.trim = function (n) {
        return n.replace(/^[\s\uFEFF\xA0\u3000]+|[\s\uFEFF\xA0\u3000]+$/g, "")
    }, Hi.now = h, Hi.rnd = g, Hi.hasOwn = function (n, t) {
        return $i.call(n, t)
    }, Hi.extend = y;
    var zi = function (n) {
        return n && "[object Object]" === Xi.call(n)
    };
    Hi.isObj = zi;
    var Gi = function (n) {
        return p(n, "string")
    };
    Hi.isStr = Gi, Hi.isFunc = function (n) {
        return p(n, "function")
    }, Hi.attr = function (n, t) {
        return n.getAttribute(t)
    }, Hi.parseQuery = function (n) {
        var t = {};
        if (n) {
            var e = n.replace(De, function (n, t, e, r) {
                return r || ""
            }).split("&");
            return Yi.each(e, function (n) {
                var e = n.split("="), r = e[0], i = e[1] || "";
                r && !$i.call(t, r) && (t[r] = Ui(i))
            }), t
        }
    }, Hi.stringifyQuery = function (n) {
        var t = [];
        return Hi.isObj(n) && Yi.each(n, function (n, e) {
            Hi.isFunc(n) || ((Ri === n || _(n)) && (n = n || ""), t.push(Ki(e) + "=" + Ki(n)))
        }), t.join("&")
    }, Hi.genReqId = function () {
        return "" + h() * Fi + parseInt(g() * Fi)
    }, Hi.run = function (n, t) {
        Wi(n) ? Yi.each(n, t) : t(n)
    }, Hi.on = function (n, t, e) {
        n.addEventListener ? n.addEventListener(t, e, !1) : n.attachEvent && n.attachEvent("on" + t, e)
    }, Hi.off = function (n, t, e) {
        n.removeEventListener ? n.removeEventListener(t, e, !1) : n.detachEvent && n.detachEvent("on" + t, e)
    };
    var Yi = {};
    Yi.isArray = function (n) {
        return "[object Array]" === Xi.call(n)
    };
    var Wi = function (n) {
        if (!n) return !1;
        var t = n.length;
        return !!Yi.isArray(n) || !!(n && m(t) && t >= 0) && (!Hi.isObj(n) || (!(t > 1) || t - 1 in n))
    };
    Yi.isArrayLike = Wi, Yi.find = function (n, t, e) {
        var r = void 0;
        return Wi(n) && Yi.each(n, function (i, u) {
            if (!0 === t.call(e, i, u, n)) return r = i, !1
        }), r
    }, Yi.filter = function (n, t, e) {
        var r = [];
        return Wi(n) && Yi.each(n, function (i, u) {
            t.call(e, i, u, n) && r.push(i)
        }), r
    }, Yi.toArray = function (n, t, e) {
        var r = [];
        return Wi(n) && Yi.each(n, function (n) {
            r.push(t ? t.call(e, n) : n)
        }, e), r
    };
    var Zi = function (n, t, e) {
        if (n) {
            var r = void 0, i = void 0, u = void 0, o = void 0, a = !1;
            if (Wi(n)) for (i = 0, u = n.length; i < u && (o = t.call(e, n[i], i, n), a !== o); i++) ; else for (r in n) if (Hi.hasOwn(n, r) && (o = t.call(e, n[r], r, n), a === o)) break
        }
    };
    Yi.each = Zi;
    var nu = function (n, t, e) {
        if (n) {
            for (var r = [], i = 0, u = n.length; i < u; i++) {
                var o = t.call(e, n[i], i, n);
                r.push(o)
            }
            return r
        }
    };
    Yi.slice = function (n, t, e) {
        return Pi.slice.call(Yi.toArray(n), t, e)
    }, Yi.reduce = function (n, t) {
        if (Wi(n) && Hi.isFunc(t)) {
            var e = n, r = e.length >>> 0, i = 0, u = void 0, o = arguments;
            if (3 === o.length) u = o[2]; else {
                for (; i < r && !(i in e);) i++;
                if (i >= r) return;
                u = e[i++]
            }
            for (; i < r;) i in e && (u = t(u, e[i], i, e)), i++;
            return u
        }
    };
    var tu = {};
    tu.del = function (n, t) {
        var e = n + "=;path=/;domain=" + t, r = new Date;
        return r.setFullYear(1970), e += ";expires=" + r.toUTCString(), Li.cookie = e, !0
    }, tu.get = function (n) {
        var t = Li.cookie.match(new RegExp("(?:^|;)\\s*" + n + "=([^;]+)"));
        return Ui(t ? t[1] : "")
    }, tu.set = function (n, t, e, r) {
        r = r || Li.domain;
        var i = void 0, u = void 0, o = void 0, a = n + "=" + Ki(t) + ";path=/;domain=" + r;
        Ri === e || isNaN(e) || (i = new Date, u = 60 * parseInt(e, 10) * 1e3, o = i.getTime() + u, i.setTime(o), a += ";expires=" + i.toUTCString());
        try {
            return Li.cookie = a, !0
        } catch (c) {
            return !1
        }
    }, tu.top = function (n, t, e) {
        var r = Li.domain, i = r.split("."), u = i.length, o = u - 1, a = void 0, c = !1;
        for (t = "" + t; !c && o >= 0 && (r = i.slice(o, u).join("."), tu.set(n, t, e, r), a = tu.get(n), Ri !== a && (c = a === t), o--, !c);) ;
    }, tu.del = function (n) {
        return tu.top(n, "", -100)
    };
    var eu = function () {
        var n = void 0;
        return {
            update: function (t) {
                n = t
            }, get: function () {
                return n
            }
        }
    }(), ru = 0, iu = 4, uu = "", ou = function (n) {
        iu = n
    }, au = function () {
        return uu && 3 === iu
    }, cu = function (n) {
        uu = n
    }, fu = function () {
        return uu
    }, su = Vi, du = [{n: de, r: /lingxi\/demo\/\d+/i, v: su}, {n: oe, r: qe, v: su}, {n: ae, r: ke, v: su}, {n: ce, r: Oe, v: su}, {n: fe, r: Ae, v: su}, {n: se, r: Ie, v: su}], vu = /android/i.test(su), lu = "", pu = vu, hu = !1, gu = !1, mu = ze, _u = !1, yu = -1;
    if (Ee.test(su)) {
        mu = Ge, pu = !0, Yi.each(du, function (n) {
            if (n.r.test(n.v)) return lu = n.n, !1
        }), je.test(su) && (hu = !0);
        var bu = Ke.test(su), wu = Qe.test(su);
        (bu || wu) && (gu = !0), lu && (bu ? mu = $e : Ue.test(su) ? mu = Xe : wu && (mu = He))
    } else {
        var xu = su.match(/(msie) (\d+)|Trident\/(d+)/i);
        xu && (_u = !0, xu && (yu = parseInt(xu[2], 10)))
    }
    var Su = Ni.screen.width + "*" + Ni.screen.height, qu = hu || / knb\/\d+/i.test(Vi), ku = function () {
        var n = Ni.KNB;
        return pu && qu && n && n.isApiSupported
    }, Ou = Vi.replace(/^.*TitansX\/([\d\.]+)\s.*$/i, "$1"), Au = me + "_source", Iu = me + "_medium", Eu = me + "_term", ju = me + "_campaign", Du = me + "_content", Cu = void 0, Fu = ee, Nu = Ni.JSON;
    Nu || (Nu = {
        parse: function (n) {
            return new Function("return (" + n + ")")()
        }, stringify: function () {
            var n = Yi.isArray, t = {'"': '\\"', "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", "\t": "\\t"}, e = function (n) {
                return t[n] || "\\u" + (n.charCodeAt(0) + 65536).toString(16).substr(1)
            }, r = /[\\"\u0000-\u001F\u2028\u2029]/g;
            return function i(t) {
                if (null == t) return "null";
                if (p(t, "number")) return isFinite(t) ? t.toString() : "null";
                if (p(t, "boolean")) return t.toString();
                if (p(t, "object")) {
                    if ("function" === l(t.toJSON)) return i(t.toJSON());
                    if (n(t)) {
                        for (var u = "[", o = 0; o < t.length; o++) u += (o ? ", " : "") + i(t[o]);
                        return u + "]"
                    }
                    if (Hi.isObj(t)) {
                        var a = [];
                        for (var c in t) t.hasOwnProperty(c) && a.push(i(c) + ": " + i(t[c]));
                        return "{" + a.join(", ") + "}"
                    }
                }
                return '"' + t.toString().replace(r, e) + '"'
            }
        }()
    });
    var Tu = Nu, Lu = "__lxsdk_", Mu = Ni.localStorage, Bu = {
        get: function (n) {
            n = U(n);
            var t = Mu.getItem(n);
            return t = Ri !== t ? Tu.parse(t) : t
        }, set: function (n, t) {
            return Bu.del(n), Mu.setItem(U(n), Tu.stringify(t))
        }, keys: function tc() {
            for (var tc = [], n = void 0, t = 0; t < Mu.length; t++) n = Mu.key(t), 0 === n.indexOf(Lu) && tc.push(n.replace(Lu, ""));
            return tc
        }, del: function (n) {
            try {
                return Mu.removeItem(U(n))
            } catch (t) {
            }
        }, clear: function () {
            for (var n = this.keys(), t = 0; t < n.length; t++) this.del(n[t])
        }
    };
    if (Mu) {
        if (Mu) {
            var Vu = "___lxtest";
            Bu.nt = !0;
            try {
                Bu.set(Vu, 1);
                var Ru = Bu.get(Vu);
                1 !== Ru ? Bu.clear() : Bu.del(Vu)
            } catch (Pu) {
                try {
                    Bu.clear(), Mu.setItem(Vu, 1), Mu.removeItem(Vu)
                } catch (Pu) {
                    Mu = K(), Bu.nt = !1
                }
            }
        }
    } else Mu = K(), Bu.nt = !1;
    var Ju = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Uu = "tag", Ku = 18e5, Qu = {
        set: function (n, t, e) {
            var r = void 0, i = [], u = Bu.get(Uu) || [];
            if (-1 === Ju.indexOf(t)) return !1;
            for (var o = 0, a = u.length; o < a; o++) r = u[o], X(r) || (n === r.c ? t !== r.k && i.push(r) : i.push(r));
            return r = new Q(n, t, e, (+new Date)), i.push(r.toJSON()), Bu.set(Uu, i), !0
        }, get: function (n, t) {
            var e = void 0, r = Bu.get(Uu);
            if (r && r.length) return e = {}, Yi.each(r, function (n) {
                var t = {};
                t[n.k] = n.v, X(n) || (e[n.c] = Hi.extend(!0, e[n.c] || {}, t))
            }), n && t ? e[n] && e[n][t] : n ? e[n] : e
        }, getAll: function () {
            var n = Bu.get(Uu), t = {}, e = void 0;
            return Yi.each(n, function (n) {
                var r = void 0;
                !X(n) && n.v && (e = !0, r = {}, r[n.k] = n.v, t[n.c] = Hi.extend(!0, t[n.c], r))
            }), e && t
        }, clear: function (n, t) {
            var e = arguments.length;
            if (!e) return Bu.set(Uu, []);
            if (Hi.isStr(n)) {
                var r = Bu.get(Uu), i = [];
                Yi.each(r, function (e) {
                    (t !== Ri && e.k !== t || n !== e.c) && i.push(e)
                }), Bu.set(Uu, i)
            }
        }
    };
    H.prototype.then = function (n, t) {
        return G(this, new H($), n, t)
    }, H.all = function (n) {
        return new H(function (t, e) {
            for (var r = 0, i = n.length, u = [], o = 0, a = void 0, c = function (n) {
                var t = [];
                for (r = 0; r < i; r++) t.push(n[r] ? n[r].value : void 0);
                return t
            }, f = function (n) {
                return function (e) {
                    if (n.value = e, n.state = $u, o++, o === n.len && !a) {
                        var r = c(u);
                        t(r)
                    }
                }
            }, s = function (n) {
                return function (t) {
                    n.value = t, n.state = Xu, o++, a || (a = !0, e(t))
                }
            }, d = function () {
                var t = n[r], e = {value: null, index: r, state: null, len: i};
                u.push(e), !function (n) {
                    t.then ? t.then(f(n), s(n)) : H.resolve(t).then(f(n), s(n))
                }(e)
            }; r < i; r++) d()
        })
    }, H.resolve = function (n) {
        if (n instanceof H) return n;
        if (Hi.isFunc(n.then)) {
            var t = n.then.bind(n);
            return new H(function (n, e) {
                t(n, e)
            })
        }
        return new H(function (t) {
            t(n)
        })
    }, H.reject = function (n) {
        return new H(function (t, e) {
            e(n)
        })
    };
    var Xu = 0, $u = 1, Hu = 2, zu = "function", Gu = "object";
    H.prototype._state = Hu, H.prototype._pCount = 0;
    var Yu = !1, Wu = 2e3, Zu = [], no = !1, to = void 0, eo = 500, ro = "getUserInfo", io = void 0, uo = function () {
        var n = function () {
            for (var n = 1 * new Date, t = 0; n === 1 * new Date && t < 200;) t++;
            return n.toString(16) + t.toString(16)
        }, t = function () {
            return Math.random().toString(16).replace(".", "")
        }, e = function () {
            function n(n, t) {
                var e = void 0, r = 0;
                for (e = 0; e < t.length; e++) r |= i[e] << 8 * e;
                return n ^ r
            }

            var t = su, e = void 0, r = void 0, i = [], u = 0;
            for (e = 0; e < t.length; e++) r = t.charCodeAt(e), i.unshift(255 & r), i.length >= 4 && (u = n(u, i), i = []);
            return i.length > 0 && (u = n(u, i)), u.toString(16)
        };
        return function () {
            var r = (screen.height * screen.width).toString(16);
            return n() + "-" + t() + "-" + e() + "-" + r + "-" + n()
        }
    }(), oo = void 0, ao = Nr, co = !1, fo = 5e3, so = "getEnv", vo = nr, lo = !1, po = !1, ho = !1, go = !1, mo = [], _o = 0, yo = void 0, bo = Hi.now(), wo = wn.prototype;
    wo.send = function (n) {
        var t = this, e = bn(t), r = Ye + Ki(Tu.stringify(e)), i = Hi.now(), u = 5e3 < i - bo;
        yo && u && t._mn === so && vo === Ze ? n(0, yo) : gn(We, r, function (t, e) {
            n(t, e)
        })
    };
    var xo = {}, So = Tr, qo = [], ko = 0, Oo = 1, Ao = 2, Io = "|", Eo = function (n) {
        var t = Un();
        if (n && lu || ku()) {
            var e = Mn(n, t), r = oe === lu;
            return r && (e = e.then(Kn(t), function (n) {
                return Kn(t)()
            })), e.then(function (n) {
                var e = Jn(n[we]), r = n[be], i = n[pe], u = n[xe], o = n;
                return n !== t && (o = Hi.extend(t, n)), Hi.isStr(e) && (o[we] = e), i && On(i), r && tu.top(Qr, r, Vr), u && tu.top(Ur, u, Vr), o
            }, function (n) {
                return t
            })
        }
        var i = Pn(t);
        return H.resolve(i)
    }, jo = 3, Do = 150, Co = 5e3, Fo = 3500, No = 1e5 * h() + Math.floor(1e5 * Math.random()), To = !1, Lo = [], Mo = [], Bo = 0, Vo = /([a-fA-F0-9-]+)(\.\d+)/, Ro = "_hc.v", Po = 525600, Jo = "", Uo = /(dper|dianping|51ping)\.com/.test(Mi), Ko = function () {
        var n = void 0;
        try {
            var t = document;
            if (t.querySelectorAll) {
                var e = t.querySelectorAll("head script"), r = t.querySelectorAll("body script"), i = [];
                Yi.each(e, function (n) {
                    i.push(n)
                }), Yi.each(r, function (n) {
                    i.push(n)
                });
                for (var u = 0; u < i.length; u++) {
                    var o = i[u].innerHTML, a = o.match(/\[['"]\s*_setPageId\s*['"]\s*,\s*(\d+)\s*\]/);
                    if (a) {
                        n = a[1];
                        break
                    }
                }
            }
        } catch (c) {
        }
        return function () {
            return n
        }
    }();
    at.prototype = {
        constructor: at, set: function (n, t, e) {
            var r = this, i = r.l, u = r.d, o = r.indexOf(n), a = i > 0 ? u[i - 1].scid + 1 : 0, c = {scid: a, cid: n, bid: t, sf: e};
            -1 < o ? u.splice(o, i - o, c) : u.push(c), r.l = u.length, Bu.set(si, {s: r.s, d: u})
        }, indexOf: function (n) {
            for (var t = this, e = t.d || [], r = 0, i = e.length; r < i; r++) {
                var u = e[r];
                if (u.cid === n) return r
            }
            return -1
        }, toJSON: function () {
            var n = this.d;
            return n && n.length ? n : null
        }
    };
    var Qo = null, Xo = "category", $o = "setEnv", Ho = "setEvs", zo = "setTag", Go = "getTag", Yo = "getSFrom", Wo = -1, Zo = "val_bid", na = "page", ta = "s_from", ea = "lat", ra = "lng", ia = [], ua = Li.referrer, oa = [], aa = void 0, ca = void 0, fa = {}, sa = 0, da = function (n, t, e) {
        if (e) {
            var r = {}, i = {custom: r};
            r[t] = e, n = Hi.extend(!0, n || {}, i)
        }
        return n
    }, va = st.prototype;
    va.set = function (n, t, e) {
        var r = this, i = r.env;
        if (Hi.isObj(n)) return void Zi(n, function (n, t) {
            r.set(t, n)
        });
        if (i[n] = t, "utm" === n && Hi.isObj(t) && V(t), Fr !== vn() || Lt(n)) Hi.isFunc(e) && e(i, r); else {
            var u = {}, o = kt(i[Xo]);
            u[n] = t, xn(o, $o, u, function () {
                Hi.isFunc(e) && e(i, r)
            })
        }
    }, va.get = function (n, t) {
        var e = this;
        Hi.isFunc(t) && t(e.env[n], e)
    }, va.pageView = function (t, e) {
        e = lt(e) || {};
        var r = void 0, i = this, u = i.opts.cid, o = e.cid || u, a = e.isauto || Pe, s = e.isAutoInit, d = e.reportStatus, v = u && !(dt(i) || s) && !vt(), l = d === Nr || Nr === vn(), p = i.env;
        if (this._cpi = t, v && !f()) {
            var h = O(!0);
            r = l ? Et(ur, u, null, h) : Ft.call(i, ur, u, null, h), c(ue)
        }
        if (u && (dt(i) || vt()) || mt(), i.opts.cid = o, l) {
            var g = Ot(i), m = Nt(Qu.getAll()), _ = jt(ir, o, null, t, a);
            v && r && _.unshift(r);
            var y = Tt(g, _, m);
            this.send(y, {nm: ir}), s || sa++
        } else {
            var b = [Ft.call(i, ir, o, null, t)];
            v && r && b.push(r), Yi.each(b, function (n) {
                n.appnm = p.appnm
            }), xn(kt(p[Xo]), Ho, b, function (r, u) {
                r ? (ln(Nr), i.pageView(t, e), Xn(Ti.href, "native-report-error", i.env.union_id, n(r))) : s || sa++
            })
        }
        i._ptpvs = s ? Je : Pe
    }, va.pageDisappear = function (n, t) {
        t = Hi.extend({}, t);
        var e = this, r = t.cid || e.opts.cid, i = t.getDurationFromLastPV || !1, u = t.shouldStore;
        c(ie);
        var o = O(i);
        if (n = Hi.extend(o, n), Nr === vn() || u) {
            var a = Ot(e), f = Et(ur, r, null, n), s = Nt(Qu.getAll()), d = Tt(a, f, s);
            u && Bu.nt ? (au() && (d[we] = fu()), Bu.set(Se, d)) : e.send(d)
        } else {
            var v = this.env, l = [Ft.call(e, ur, r, null, n)], p = kt(v[Xo]);
            xn(p, Ho, l, function (r, i) {
                r && (ln(Nr), e.pageDisappear(n, t))
            })
        }
    }, va.systemCheck = function (n, t, e) {
        e = Hi.extend({}, e);
        var r = this, i = e.cid || r.opts.cid;
        if (Nr === vn()) {
            var u = Ot(r), o = jt(ar, i, n, t), a = Nt(Qu.getAll()), c = Tt(u, o, a);
            this.send(c)
        } else {
            var f = r.env, s = [Ft.call(r, ar, i, n, t)], d = kt(f[Xo]);
            xn(d, Ho, s, function (i, u) {
                i && (ln(Nr), r.systemCheck(n, t, e))
            })
        }
    }, va.moduleView = function (n, t, e) {
        e = Hi.extend({}, e);
        var r = this, i = r.opts.mvDelay || e.delay, u = e.cid || r.opts.cid;
        if (Nr === vn()) {
            var o = Ot(r), a = jt(cr, u, n, t), c = Nt(Qu.getAll()), f = void 0;
            i ? (Hi.run(a, function (n) {
                oa.push(n)
            }), Ce(function () {
                oa.length && (f = Tt(o, oa, c), r.send(f), oa = [])
            }, i * Cr)) : (f = Tt(o, a, c), r.send(f))
        } else {
            var s = r.env, d = [Ft.call(r, cr, u, n, t)];
            s[me] && (d = Mt(d, s));
            var v = kt(s[Xo]);
            new Date;
            xn(v, Ho, d, function (i, u) {
                i && (ln(Nr), r.moduleView(n, t, e))
            })
        }
    }, va.moduleClick = function (n, t, e) {
        e = Hi.extend({}, e);
        var r = this, i = e.cid || r.opts.cid, u = e.sf;
        e && e.isLeave && c(ie);
        var o = void 0, a = e.withPageInfo && Hi.isObj(r._cpi) ? r._cpi : Ri;
        if (Nr === vn()) {
            var f = Ot(r);
            o = Et(or, i, n, t), a && (o = yt(o, r._cpi));
            var s = Dt(o), d = Nt(Qu.getAll()), v = Tt(f, s, d);
            if (e && e.isLeave) {
                var l = O(), p = Et(ur, i, Ri, l);
                v.evs.push(p)
            }
            pu && u && ft().set(i, n, u), r.send(v, {nm: or})
        } else {
            var h = r.env, g = {sf: u};
            r._cpi && (g.cpi = r._cpi), o = Ft.call(r, or, i, n, t, null, g);
            var m = [o];
            h[me] && (m = Mt(m, h));
            var _ = kt(h[Xo]);
            if (e && e.isLeave) {
                var y = O(), b = Ft.call(r, ur, i, null, y);
                m.push(b)
            }
            xn(_, Ho, m, function (i, u) {
                i && (ln(Nr), r.moduleClick(n, t, e))
            })
        }
    }, va.moduleEdit = function (n, t, e) {
        e = Hi.extend({}, e);
        var r = this, i = e.cid || r.opts.cid;
        if (Nr === vn()) {
            var u = Ot(r), o = jt(fr, i, n, t), a = Nt(Qu.getAll()), c = Tt(u, o, a);
            this.send(c)
        } else {
            var f = this.env, s = [Ft.call(r, fr, i, n, t)];
            f[me] && (s = Mt(s, f));
            var d = kt(f[Xo]);
            xn(d, Ho, s, function (i, u) {
                i && (ln(Nr), r.moduleEdit(n, t, e))
            })
        }
    }, va.order = function (n, t, e) {
        e = Hi.extend({}, e);
        var r = this, i = e.cid || r.opts.cid;
        if (A(n, t), Nr === vn()) {
            var u = Ot(this), o = jt(sr, i, n, t), a = Nt(Qu.getAll()), c = Tt(u, o, a);
            this.send(c)
        } else {
            var f = this.env, s = [Ft.call(r, sr, i, n, t)], d = kt(f[Xo]);
            xn(d, Ho, s, function (i, u) {
                i && (ln(Nr), r.order(n, t, e))
            })
        }
    }, va.pay = function (n, t, e) {
        e = Hi.extend({}, e);
        var r = this, i = e.cid || r.opts.cid;
        if (A(n, t), Nr === vn()) {
            var u = Ot(r), o = jt(dr, i, n, t), a = Nt(Qu.getAll()), c = Tt(u, o, a);
            this.send(c, {
                cb: function () {
                    Qu.clear()
                }
            }), r.clearTag()
        } else {
            var f = this.env, s = [Ft.call(r, dr, i, n, t)], d = kt(f[Xo]);
            xn(d, Ho, s, function (i, u) {
                i && (ln(Nr), r.pay(n, t, e))
            })
        }
    }, va.tag = function (n, t, e, r) {
        var i = void 0, u = void 0, o = this.env, a = arguments, c = [], f = function (n) {
            if (!Hi.isObj(n)) return n;
            for (var t = n, e = 0, r = c.length; e < r; e++) {
                if (!t) return t;
                t = t[c[e]]
            }
            return t
        }, s = function () {
            Yi.each(a, function (n) {
                return !!Hi.isStr(n) && void c.push(n)
            })
        }, d = function (n, t, e) {
            var i = {};
            i[n] = t, u = kt(o[Xo]), xn(u, zo, i, function (n, t) {
                r && (e && s(), r(n, f(t), !0))
            })
        }, v = function (n) {
            var t = Qu.getAll();
            n || s(), r && r(0, f(t), !1)
        };
        if (Yi.each(a, function (n) {
                Hi.isFunc(n) && (r = n)
            }), Hi.isObj(n)) {
            var l = this;
            Yi.each(n, function (n, t) {
                l.tag(t, n)
            })
        } else Hi.isStr(n) && Hi.isObj(t) ? Nr !== vn() ? (i = t, d(n, i, !0)) : (Zi(t, function (t, e) {
            Qu.set(n, e, t)
        }), v(!0)) : (Hi.isObj(e) || Hi.isStr(e)) && bt(n) && Hi.isStr(t) ? Nr !== vn() ? (i = {}, i[t] = e, d(n, i, !0)) : (Qu.set(n, t, e), v(!0)) : Hi.isFunc(n) || Hi.isFunc(t) || Hi.isStr(n) && Hi.isStr(t) && Hi.isFunc(e) ? Nr !== vn() ? (s(a), u = kt(o[Xo]), xn(u, Go, {}, function (n, t) {
            r && r(n, f(t), !0)
        })) : v() : r && r(Wo)
    }, va.clearTag = function (n, t, e) {
        var r = 0;
        Nr === vn() ? (Hi.isFunc(n) && (e = n, n = Ri), Qu.clear(n, t), e && e(0)) : r = Wo, e && e(r)
    }, va.sfrom = function (n) {
        var t = void 0, e = void 0, r = this.env;
        Nr !== vn() ? (e = kt(r[Xo]), xn(e, Yo, {}, function (e, r) {
            if (r) {
                var i = r.data ? r.data : r;
                t = Hi.isStr(i) ? JSON.parse(i) : i, n(e, t)
            }
        })) : n(1, [])
    }, va.send = function (n, t) {
        var e = [];
        t = Hi.extend({
            cb: function () {
            }
        }, t), Hi.run(n, function (n) {
            au() && (n[we] = fu()), e.push(n)
        });
        var r = _t();
        r && e.unshift(r), $n(e, t)
    }, va.getAll = function () {
        return ia
    };
    var la = Pt.prototype;
    la.create = function (n, t) {
        var e = this, r = Hi.extend({}, e.env);
        r = Hi.extend(r, {category: n});
        var i = Hi.extend({isDefault: !1}, e.opts);
        i = Hi.extend(i, t || {});
        var u = new st(i, r);
        return e._t.push(u), t.isDefault && (e._dt = u), u
    }, la.config = function (n, t) {
        return Ri !== n && (ji[n] = t), "cid" === n && Gi(t) && (this.opts.cid = t), ji[n]
    }, la._initPV = function (n, t) {
        var e = this, r = e.config("pageValLab");
        n = Hi.extend(n, e.config("pageEnv")), Rt(e, r, n, {isauto: Je, reportStatus: Nr, cid: t, isAutoInit: !0})
    }, la.pageView = function (n, t, e) {
        Rt(this, n, t, e)
    }, la.moduleView = function (n, t, e) {
        var r = this;
        r._dt.moduleView(n, t, e)
    }, la.systemCheck = function (n, t, e) {
        var r = this;
        r._dt.systemCheck(n, t, e)
    }, la.moduleClick = function (n, t, e) {
        var r = this;
        r._dt.moduleClick(n, t, e)
    }, la.moduleEdit = function (n, t, e) {
        var r = this;
        r._dt.moduleEdit(n, t, e)
    }, la.order = function (n, t, e, r) {
        var i = this;
        i._dt.order(n, Bt(e, t), r)
    }, la.pay = function (n, t, e, r) {
        var i = this;
        i._dt.pay(n, Bt(e, t), r)
    }, la.pageDisappear = function (n, t) {
        var e = this;
        e._dt.pageDisappear(n, t)
    }, la.tag = function (n, t, e, r) {
        this._dt.tag(n, t, e, r)
    }, la.sfrom = function (n) {
        this._dt.sfrom(n)
    }, la.clearTag = function (n, t, e) {
        this._dt.clearTag(n, t, e)
    }, la.getAll = function (n) {
        n && n(this._t)
    }, la.getTracker = function (n, t) {
        var e = Yi.find(this._t, function (t) {
            return t.env.category === n
        });
        t && t(e)
    }, la.get = function (n, t) {
        this._dt.get(n, t)
    }, la.set = function (n, t, e) {
        this._dt.set(n, t, e)
    }, la._setRequestID = function (n) {
        pt(n)
    }, la._setNativeEvsData = function (n, t) {
        ht(n, t)
    };
    var pa, ha, ga = {
        appear: function () {
            q(), Xt(), pa.pageView(), c(ue)
        }, disappear: function () {
            f() || (c(ie), pa.pageDisappear({}, {getDurationFromLastPV: !0}))
        }
    }, ma = function () {
        return !!/\d\.\d\.\d/.test(Ou) && F(Ou, "11.3.0") >= 0
    }(), _a = {hook: Ut}, ya = [], ba = Tr, wa = void 0, xa = void 0, Sa = [[vr, Ar], [lr, Ar], [pr, Or], [hr, Ir], [gr, Er], [mr, jr]], qa = Yi.reduce(Sa, function (n, t) {
        return n[t[0]] = t[1], n
    }, {}), ka = [[xi, Sr], [Si, qr]], Oa = Yi.reduce(ka, function (n, t) {
        return n[t[0]] = t[1], n
    }, {}), Aa = Yi.reduce(["config", bi, _i, yi], function (n, t) {
        return n[t] = !0, n
    }, {}), Ia = function (n) {
        var t = n.split("."), e = void 0;
        return 2 === t.length && (n = t[1], e = t[0]), [n, e]
    }, Ea = function (n) {
        var t = n.indexOf(".");
        return t > 0 && (n = n.substr(t + 1)), !!Aa[n]
    }, ja = function (n, t) {
        var e = Li.getElementsByTagName("head")[0], r = Li.createElement("meta");
        r.setAttribute("name", n), r.setAttribute("content", t), e.appendChild(r)
    }, Da = function (n, t) {
        return n === wi ? t ? qa[t] || kr : Ar : n === xi || n === Si ? Oa[n] : kr
    }, Ca = function (n) {
        var t = {act: 1, cid: 1, val: 1, lab: 1, bid: 1};
        return 1 === t[n]
    }, Fa = function (n, t) {
        return n = n || {}, Zi(t, function (t, e) {
            Ca(e) ? n["val_" + e] = t : n[e] = t
        }), n
    }, Na = function (n) {
        var t = n.val;
        return t && (Fa(n, t), delete n.val), n
    }, Ta = function (n, t, e) {
        if (n && !zi(n) && (n = {custom: {_lab: n}}), !n && e && (n = {}), e) {
            var r = n[fi] = n[fi] || {};
            r[t] = e
        }
        return n
    }, La = function (n, t, e) {
        return n && !zi(n) && (n = {custom: {_lab: n}}), n && (n[t] = e), n
    }, Ma = function (n, t) {
        var e = n[oi], r = n[ci];
        if (e && e === r && (r = y(!0, {}, r)), t && (r || e)) {
            var i = e;
            e = r || {}, i && (e = Ta(e || {}, "_lab", i))
        } else if (!t && (r || e)) {
            if (Gi(r) && (r = {analyse_val: r}), Gi(e)) {
                var u = e;
                e = {val_lab: u}
            }
            r && (e = La(e || {}, "page", r))
        }
        return Ri !== n[yr] && (e = Ta(e || {}, "_act", n[yr])), Ri !== n[_r] && (e = Ta(e || {}, "_et", n[_r])), Ri !== n[wr] && (e = La(e || {}, wr, n[wr])), Ri !== n[xr] && (e = Ta(e || {}, "_el_id", n[xr])), e
    }, Ba = function ec(n, t) {
        var e = zt(n);
        n = e[0];
        var r = e[1], i = t[0], u = t[1];
        if (Yi.isArray(i)) return nu(i, function (t) {
            return ec(r ? r + "." + n : n, [t, u])
        });
        var o = (i.nm || wi).toLowerCase();
        i.nm = o, i = Na(i);
        var a = xi === o, c = wi === o;
        if (a) return Ht.apply(null, t);
        var f = Er === o, s = jr === o, d = i[_r], v = i[yr], l = Ma(i, !1);
        f || s || d || !c || !v ? s || f ? n = o : (n = Da(o, d), c || (l = Ta(l || {}, "_nm", o))) : n = Ar;
        var p = i[br];
        return p && (u = u || {}, u.cid = p), r && Ta(l, "_logchannel", r), l = l || {}, Ta(l, "_api", "v3"), n === Er || n === jr ? [n, i[ai], l.order_id, l, u] : [n, i[ai], l, u]
    }, Va = function (n, t) {
        var e = zt(n), r = e[1];
        n = Sr;
        var i = t[1], u = t[2], o = r ? {custom: {_logchannel: r}} : Ri, a = {};
        if (Gi(i)) zi(u) ? o = u : Gi(u) && (o = Ta({}, "analyse_val", u)); else if (zi(i)) {
            a = Fa(a, i), u = a[ci], Gi(u) && (u = Ta({}, "analyse_val", u)), o = u;
            var c = a[oi];
            c && Ta(o, "_lab", c), i = a[br]
        }
        var f = void 0;
        return i && (f = {}, f.cid = i), o = Ta(o, "_api", "v3"), [n, o, Ri, f]
    }, Ra = function (n, t) {
        var e = t[0], r = t[1];
        if (e && (e = e.replace(/^data_sdk_/i, ""), ja("lx:category", e)), zi(r)) return ["set", r]
    }, Pa = function (n, t, e) {
        return "appnm" === t && Gi(e) ? void ja("lx:appnm", e) : "cid" === t && Gi(e) ? (ja("lx:cid", e), [n, t, e]) : [n, t, e]
    }, Ja = function rc() {
        var n = rc.f;
        if (!n) {
            var t = "lx:autopv", e = "off";
            ja(t, e), rc.f = !0
        }
    }, Ua = function (n) {
        if (!n || !n.length) return n;
        try {
            var t = n[0];
            Ea(t) && (n = Yi.slice(n, 1), Ka(t) ? (ou(3), Ja(), n = Ba(t, n)) : Qa(t) ? (ou(3), Ja(), n = Va(t, n)) : Xa(t) ? (ou(3), Ja(), n = Ra(t, n)) : $a(t, n[0], n[1]) ? (Ja(), n = Pa(t, n[0], n[1])) : n.unshift(t))
        } catch (e) {
        }
        return n
    }, Ka = function (n) {
        var t = n.indexOf(".");
        return t > 0 && (n = n.substr(t + 1)), n === bi
    }, Qa = function (n) {
        var t = n.indexOf(".");
        return t > 0 && (n = n.substr(t + 1)), n === _i
    }, Xa = function (n) {
        return n === yi
    }, $a = function (n, t) {
        var e = !1;
        return "cid" !== t && "appnm" !== t || (ou(3), e = !0), "config" === n && e
    }, Ha = void 0, za = void 0, Ga = 5, Ya = 100, Wa = 0, Za = !1, nc = (h(), 0);
    nc = Ce(function () {
        ne()
    }, 3e3), "complete" !== Li.readyState ? (Hi.on(Li, "DOMContentLoaded", ne), Hi.on(Ni, "load", ne)) : ne()
}();